package com.sc.nft.entity.vo;

import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class WorkRoomExportVO {


    @ApiModelProperty("手机号")
    private String userTel;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("工作室名称")
    private String workRoomName;

    @ApiModelProperty("身份证号")
    private String idCard;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("团队有效交易人数")
    private Integer validatedUser;

    @ApiModelProperty("持仓成本")
    private String teamCost;

    @ApiModelProperty("类型名称")
    private String typeName;

    public void setTeamCost(BigDecimal teamCost) {
        if (ObjectUtil.isEmpty(teamCost)) {
            teamCost=BigDecimal.ZERO;
        }
        this.teamCost = StrUtil.format("{} {}","¥", teamCost.setScale(2,BigDecimal.ROUND_DOWN).toPlainString());
    }

}
